package org.ws.task.model.protocol;


import org.apache.curator.shaded.com.google.common.collect.Lists;

import java.io.Serializable;
import java.util.List;

public class CommitResponse implements Serializable {

    private List<CommitResult> results;

    public List<CommitResult> getResults() {
        return results;
    }

    public void setResults(List<CommitResult> results) {
        this.results = results;
    }

    public void addResult(CommitResult result){
        if(this.results == null){
            this.results = Lists.newArrayList();
        }
        this.results.add(result);
    }
}
